package com.gotop.common.node;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

/**
 * @program: cem
 * @description:
 * @author: superfish
 * @create: 2020-12-22 10:57
 **/
public class TreeNode extends BaseNode {
    private static final long serialVersionUID = 1L;
    private String title;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long key;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long value;

    public TreeNode() {
    }

    public String getTitle() {
        return this.title;
    }

    public Long getKey() {
        return this.key;
    }

    public Long getValue() {
        return this.value;
    }

    public void setTitle(final String title) {
        this.title = title;
    }

    public void setKey(final Long key) {
        this.key = key;
    }

    public void setValue(final Long value) {
        this.value = value;
    }

    public String toString() {
        return "TreeNode(title=" + this.getTitle() + ", key=" + this.getKey() + ", value=" + this.getValue() + ")";
    }

}